package com.sp.fresh_produce.controller.dto.VO;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

/**
 * 订单实体
 * <p>
 * 记录订单收货信息、金额、状态与关键时间点等。
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class OrderVO {

    private String orderNo;

    private Integer userId;

    private Integer totalPrice;

    private String receiverName;

    private String receiverMobile;

    private String receiverAddress;

    /** 订单状态：参考业务约定的状态码 */
    private Integer orderStatus;

    private Integer postage;

    /** 支付方式：参考业务约定的类型码 */
    private Integer paymentType;

    private Date deliveryTime;

    private Date payTime;

    private Date endTime;

    private Date createTime;

    private Date updateTime;

    private String orderStatusName;

    private List<OrderItemVO> orderItemVOList;

}